import sevoes from "@/util/Http";
import Qs from "qs";

function getMerchant() {//查询
    return sevoes({
      method: "get",
      params: {
        _gp: "admin.merchant",
        _mt: "getMerchant",
      }
    });
  }

  function updateMerchant(data) {
    //编辑
    return sevoes({
      method: "post",
      data: Qs.stringify({
        _gp: "admin.merchant",
        _mt: "updateMerchant",
        ...data,
      }),
    });
  }

  export default {getMerchant,updateMerchant}